* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
}

html,
body,
#root,
.app {
  width: 100%;
  height: 100%;
}

.footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 50px;
  background: #f1f1f1;
}

.footer a {
  color: #ccc;
}

.footer a.active {
  color: black;
}

.home,
.shop,
.my {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.home .main,
.shop .main,
.my .main {
  width: 100%;
  flex: 1;
}

.home .main .nav,
.shop .main .nav,
.my .main .nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 50px;
  border-bottom: 1px solid #ccc;
}

.home .main .nav a,
.shop .main .nav a,
.my .main .nav a {
  color: #ccc;
}

.home .main .nav a.active,
.shop .main .nav a.active,
.my .main .nav a.active {
  color: black;
}

.home .main .list,
.shop .main .list,
.my .main .list {
  width: 100%;
  padding: 0 20px;
}

.home .main .list .item,
.shop .main .list .item,
.my .main .list .item {
  display: block;
  width: 100%;
  height: 100px;
}

.home .main .list .item span,
.shop .main .list .item span,
.my .main .list .item span {
  color: black;
  margin-left: 20px;
}

.detail {
  display: flex;
  width: 100%;
  height: 100%;
}

.detail .nav {
  width: 100px;
  height: 100%;
  border-right: 1px solid #ccc;
  background: #eee;
}

.detail .nav a {
  display: block;
  width: 100%;
  height: 40px;
  line-height: 40px;
  text-align: center;
  color: black;
}

.detail .nav a.active {
  background: #fff;
}

.detail .detlist {
  flex: 1;
  height: 100%;
}

.detail .detlist .detlist-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100px;
  padding-left: 15px;
}

.detail .detlist .detlist-item .add {
  position: absolute;
  right: 20px;
  top: 60%;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  background: skyblue;
}

.detail .toCart {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 50px;
  line-height: 50px;
  text-indent: 20px;
  background: #ccc;
}

.cart {
  width: 100%;
  height: 100%;
}

.cart .toAddress {
  width: 100%;
  padding: 15px;
  border-bottom: 1px solid #ccc;
}

.cart .toAddress p span {
  margin-right: 10px;
  color: #666;
}

.cart .content {
  width: 100%;
}

.cart .content .cart-item {
  position: relative;
  display: flex;
  width: 100%;
}

.cart .content .cart-item img {
  padding: 10px;
}

.cart .content .cart-item div {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.cart .content .cart-item span {
  position: absolute;
  right: 20px;
  top: 60%;
  display: block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  background: skyblue;
}

.cart .totalPrice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  line-height: 50px;
  text-indent: 20px;
  background: #eee;
}

.cart .totalPrice span {
  margin-right: 10px;
}

.cart .totalPrice b {
  display: inline-block;
  width: 100px;
  height: 100%;
  line-height: 50px;
  background: skyblue;
  color: #fff;
  float: right;
}

.cart .mask {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.cart .mask .time {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
}

.cart .mask .time p {
  width: 100%;
  line-height: 40px;
  text-align: center;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border-bottom: 1px solid #ccc;
}

.address {
  width: 100%;
  height: 100%;
}

.address .addr_list {
  width: 100%;
}

.address .addr_list .item {
  width: 100%;
  padding: 15px;
  border-bottom: 1px solid #ccc;
}

.address .addr_list .item p span {
  margin-right: 10px;
  color: #666;
}

.address .add-address {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-top: 1px solid #ccc;
}

.add_address {
  width: 100%;
  height: 100%;
}

.add_address div {
  width: 100%;
  text-align: center;
  padding: 15px;
}

.add_address div input {
  border: 1px solid #ccc;
  width: 200px;
  height: 30px;
  border-radius: 5px;
}

.add_address .btn {
  background: #ccc;
  border-radius: 5px;
  margin-top: 30px;
}
